package cloud.maque.admin.domain.vo;

import cloud.maque.admin.domain.entity.MqRole;
import cn.hutool.core.bean.BeanUtil;
import lombok.Data;

import java.util.List;

/**
 * @author zhuyf
 * @date 2023/3/22 17:15
 */
@Data
public class RoleVo extends MqRole {

    /**
     * 对应的菜单ID
     */
    List<String> menuIdList;

    public RoleVo convert(MqRole role) {
        RoleVo vo = new RoleVo();
        BeanUtil.copyProperties(role, vo);

        return vo;
    }
}
